#ifndef _HTPC_TYPE_H_
#define _HTPC_TYPE_H_

typedef char hpcr_int8_t;
typedef unsigned char hpcr_uint8_t;
typedef unsigned char hpcr_byte_t;
typedef short hpcr_int16_t;
typedef unsigned short hpcr_uint16_t;
typedef short hpcr_int16_t;
typedef unsigned short hpcr_uint16_t;
typedef int hpcr_int32_t;
typedef unsigned int hpcr_uint32_t;
typedef long long hpcr_int64_t;
typedef unsigned long long hpcr_uint64_t;
typedef unsigned int hpcr_size_t;
typedef unsigned long long hpcr_ptr_t;

typedef int hpcr_fd_t;

#define NUL 0

#define true 1
#define false 0
#define bool hpcr_uint8_t

#define offset(type, member) (hpcr_ptr_t)(&((type *)0)->member)

#endif
